package com.i2bt.common;

/**
 * 
 * Title : 安卓端与rest交互协议类
 * 
 * Description : 定义了安卓端和云端交互的命令，用整型识别命令。在json中附带该命令。
 * 
 * CreatedTime : 2014-8-8
 * 
 * @author wuliao & kakaxi & yi
 * 
 * @version 1.0
 * 
 */

public class AndroidRestContract {

	/**
	 * 心跳
	 */
	public static final int HEART_BEAT = 0;

	/**
	 * 账号管理
	 */
	public static final int LOGIN = 10; // 验证用户
	public static final int REGIST_INFO = 11; // 注册
	public static final int REGIST_VERIFY = 12; // 验证注册
	public static final int RESET_PHONE = 13; // 发送重置手机
	public static final int RESET_EMAIL = 14; // 发送重置邮箱
	public static final int RESET_VERIFY = 15; // 验证重置
	public static final int RESET_PASSWORD = 16; // 新密码
	public static final int GET_HOMEBOX_LIST = 17; // 获取homebox列表
	/**
	 * 好友管理
	 */
	public static final int SEARCH_FRIEND = 20; // 查询好友
	public static final int ADD_FRIEND = 21; // 添加好友
	public static final int ADD_SUCCESS = 22; // 添加成功
	public static final int SHOW_FRIEND = 23; // 显示好友列表
	public static final int DELETE_FRIEND = 24; // 删除好友
	public static final int GET_FRIEND_INFO = 25; // 获取好友信息
	public static final int CANCEL_SHARE = 26; // 取消分享
	public static final int DOWNLOAD_SHARE = 27; // 下载分享
	public static final int DELETE_SHERE = 28; // 删除好友的分享
	public static final int ADD_SHARE = 29; // 添加分享给好友
	public static final int GET_FRIEND_MESSAGE = 60; // 获取好友信息列表
	public static final int DELETE_FRIEND_MESSAGE = 61; // 删除好友信息
	public static final int FRIEND_DETAIL_MYSHARED = 62; // 好友详情里我的分享列表
	public static final int FRIEND_DETAIL_FRIENDSHARED = 63; // 好友的分享列表
	public static final int FRIEND_DETAIL_DELETE_MYSHARED = 64; // 删除我的分享
	public static final int FRIEND_DETAIL_DELETE_FRIENDSHARED = 65; // 删除好友的分享
	public static final int FRIEND_DETAIL_DOWNLOAD_MYSHARED = 66; // 下载自己分享
	public static final int FRIEND_DETAIL_DOWNLOAD_FRIENDSHARED = 67; //下载好友的分享
	/**
	 * 设置
	 */
	public static final int AUTHORITY_SETTING = 30; // 权限设置
	public static final int GET_HARDDISK_CAPACITY = 31; // 获取容量
	public static final int CHECK_UPDATE = 32; // 检查更新
	public static final int BIND_HOMEBOX = 33; // homeBox绑定

	/**
	 * 分享管理
	 */
	public static final int GET_SHERE_LIST = 40; // 获取全部分享
	public static final int CANCEL_MULT_SHARE = 41; // 取消分享
	public static final int CHANGE_SHARE = 42; // 修改详细分享
	public static final int DOWNLOAD_MULT_SHARE = 43; // 下载分享
	public static final int GET_DETAIL_SHARE = 44; // 获取详细分享
	public static final int GET_FRIEND_SHARE = 45;// 获取好友分享
	/**
	 * 目录管理
	 */
	public static final int GET_FILES = 50; // 获取目录
	public static final int DOWNLOAD_FILES = 51; // 下载目录
	public static final int ADD_MULT_SHARE = 52; // 添加大量分享
	public static final int UPLOAD_FILES = 53; // 上传目录
	public static final int DELETE_MULT_FILES = 54; // 删除大量目录
	public static final int RENAME_FILES = 55; // 重命名目录
	public static final int CREATE_FILES = 56; // 新建文件夹
	public static final int MOVE_FILES = 57; // 移动文件

	/**
	 * 发送请求时json的静态key
	 */
	public static final String ACTION = "act";

	public static final String REQUEST_ID = "seqId";

	public static final String HOMEBOX_ID = "hbId";

	public static final String TOKEN = "token";

	public static final String USER_ID = "userId";

	public static final String PARENT_FOLODER = "parentFolder";

	public static final String FILE_PATHS = "filePaths";

	public static final String PREVIOUS_PATH = "previousPath";

	public static final String NEW_PATH = "newPath";

	public static final String PARENT_PATH = "parentPath";

	public static final String FOLDER_NAME = "folderName";

	public static final String FILES_SHARE_PATH = "filesSharePath";

	public static final String SHARE_FRIENDS = "shareFriends";

	public static final String SHARE_FOLDERS = "shareFolders";

	public static final String FRIEND_LIST = "friendList";

	public static final String FRIEND_ID = "friendId";
	
	public static final String FRIEND_NAME = "friendName";

	public static final String FRIEND_MESSAGE_DATE = "date";

	public static final String FRIEND_MESSAGE_FLAG = "flag";

	public static final String FRIEND_MESSAGE_CONTENT = "content";

	public static final String FRIEND_MESSAGE_RECEIVER = "receiver";

	public static final String FRIEND_MESSAGE_SENDER = "sender";

	public static final String FRIEND_MESSAGE_LONGTIME_FLAG = "longTimeFlag";

	public static final String PASSWORD = "password";

	public static final String PHONE = "phone";

	public static final String NICK_NAME = "nickName";

	public static final String EMAIL = "eMail";

	/**
	 * 响应时json的静态key
	 */
	public static final String FOLODER_LIST = "folderList";

	public static final String ERROR_CODE = "errorCode";

	public static final String MESSAGE = "mes";

	public static final String SUCCEED = "succ";

	public static final String FRIEND_MESSAGE = "friendMessage";

	public static final String HOMEBOX_LIST = "homeBoxStatus";

	public static final String HOMEBOX_POWER = "power";

	public static final String HOMEBOX_NAME = "homeBoxName";

	public static final String SHARE_INFO = "shareInfo";

	public static final String SHARE_DATE = "date";

	public static final String FILE_SIZE = "fileSize";

	public static final String SHARE_FRIEND_NAME = "userNickName";

	public static final String SHARE_HOMEBOX_NAME = "homeBoxName";

	public static final String ADD_DETAIL_SHARE = "addShare";

	public static final String DELETE_DETAIL_SHARE = "deleteShare";
	/**
	 * 
	 * 与rest访问的地址
	 */
	public static final String ip="10.10.1.10";
	
	public static final String REST_FILES = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_SHARED = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_FRIEND = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_MESSAGE = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_REGIST = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_LOGIN = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_BIND_HOMEBOX = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_AuthoritySet = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_SetAuthority = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_GET_MYSHARE = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_GET_FRIENDSHARE = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_DELETE_FRIEND_SHARE = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_DELETE_MY_SHARE = "http://"+ip+":8080/RestletCloud/File";

	public static final String REST_GET_DETAIL_SHARE = "http://"+ip+":8080/RestletCloud/File";

}
